package com.code.day17JiHe.Stream;

import java.util.ArrayList;
import java.util.stream.Stream;

public class Test01 {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("张三", "李四", "王五", "赵六", "孙七");
        System.out.println(stream);


        ArrayList<String>list =new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        list.add("孙七");
        Stream<String> stream1 = list.stream();
        System.out.println(stream1);
    }
}
